package org.feiye.studyday03;

import java.util.Scanner;

public class Signal {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个数：");
		double num = sc.nextDouble();
		if (num > 0) {
			System.out.println("1");
		} else if (num < 0) {
			System.out.println("-1");
		} else {
			System.out.println("0");
		}

	}

}
